package com.alibaba.citrus.cr.sales.plan.repository;

import com.alibaba.citrus.cr.sales.plan.dto.api.request.FlowInstanceStartUpRequest;
import com.alibaba.citrus.cr.sales.plan.dto.api.request.TaskSubmitRequest;
import com.alibaba.citrus.cr.sales.plan.dto.api.response.FlowInstanceStartUpResponse;

/**
 * 纪元审批流服务
 * @author:suqing.tjf
 * @date:2021/9/23
 */
public interface MeshAuditFlowRepository {

    /**
     * 启动纪元审批引擎
     * @param request
     * @return
     */
    FlowInstanceStartUpResponse startDefaultProcess(FlowInstanceStartUpRequest request);

    /**
     * 提交审批任务
     * @param request
     * @return
     */
    String submitUserTask(TaskSubmitRequest request);
}
